package cn.clq.ymcc.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stone.chen
 * @since 2022-07-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_message_sms")
public class MessageSms extends Model<MessageSms> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String title;
    private String content;
    private String ip;
    @TableField("send_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")//后端->前端
    private Date sendTime = new Date();
    @TableField("user_id")
    private Long userId;
    //黑名单   0：拉黑；1：正常
    private Long black = 1L;
    private String mobile;
    //拉黑原因
    private String reason;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }


}
